<template>
	<view>
		<!-- 我的收货地址 -->
		<view class="list" v-for="(item,index) in 3">
			<view style="display: flex;">
				<view class="list_name">
					石
				</view>
				<view class="list_text">
					<view class="list_text_name">
						<text style="font-weight: 600;">石晨志</text><text style="margin-left: 3%;font-size: 30rpx;">18360235681</text>
					</view>
					<view class="address">
						上海市上海市奉贤区海湾镇上海市奉贤区海湾镇五四公路3389号上海八维宏烨学校
					</view>
				</view>
				<view>
					<image src="/static/images/修改.png" class="img"></image>
				</view>
			</view>
			<view style="width: 100%;height: 6vh;margin-top: 1vh;">
				<label class="radio">
					<radio :value="item" :checked="checked" @click="checkedClick(item)"/><text>默认地址</text><text style="margin-left: 58%;color: #565;">删除</text>
				</label>
			</view>
		</view>
		<view class="">
			<button type="default" style="margin-top: 150rpx;color: #fff; width: 95%;margin-left: 3%;background-color: #E45656;">＋添加收货地址</button>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				checked:true
			}
		},
		methods: {
			checkedClick(item){
				this.checked = false
			}
		}
	}
</script>

<style scoped>
	.radio{
		margin-left: 3%;
	}
	.img{
		width: 50rpx;
		height: 50rpx;
		margin-top: 5vh;
		margin-left: 80rpx;
	}
	.address{
		font-size: 25rpx;
		margin-top: 10px;
	}
	.list_text_name{
		margin-top: 20rpx;
	}
	.list_text{
		width: 65%;
		height: 13vh;
		margin-left: 3%;
	}
	.list_name{
		width: 50rpx;
		height: 50rpx;
		text-align: center;
		border-radius: 50%;
		background-color: #02C4C7;
		color: red;
		line-height: 50rpx;
		margin-top: 4vh;
		margin-left: 3%;
	}
	.list{
		/* position: absolute; */
		width: 95%;
		height: 20vh;
		box-shadow: 0px 0px 10px #606266; 
		margin-left: 3%;
		margin-top: 20rpx;
		border-radius: 10rpx;
		background-color: #fff;
	}
</style>
